import request from '@/utils/request'

export function getAreaSelect() {
    return request({
        url: '/admin_area/getSelectLists',
        method: 'get'
    })
}

export function getAreaList(params) {
    return request({
        url: 'admin_area',
        method: 'get',
        params
    })
}

export function createArea(data) {
    return request({
        url: '/admin_area/create',
        method: 'post',
        data
    })
}


export function updateArea(data) {
    return request({
        url: `/admin_area/update`,
        method: 'put',
        data
    })
}

export function setDelArea(data) {
    return request({
        url: `/admin_area/delete`,
        method: 'delete',
        data
    })
}

export function changeFiledStatusArea(data) {
    return request({
        url: `/admin_area/changeFiledStatus`,
        method: 'put',
        data
    })
}
